﻿using System;
using System.ComponentModel;
using System.Drawing;
using System.Security.Permissions;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.Design;


namespace WebComponents.Templates.AdminControlProj
{
    sealed class ACPPageTemplate : ITemplate
    {
        void ITemplate.InstantiateIn(Control c)
        {
            c.Controls.Add(new LiteralControl(String.Format("<!--[if lt IE 9]><div class='ie'><![endif]-->")));
            c.Controls.Add(new LiteralControl(String.Format("<!--[if lt IE 8]><div class='ie7'><![endif]-->")));

            #region Header
            c.Controls.Add(new LiteralControl(String.Format("<header>")));
            #region Server Status
            c.Controls.Add(new LiteralControl(String.Format("<div class='container_12'>")));
            c.Controls.Add(new LiteralControl(String.Format("<p id='skin-name'><small>Constellation<br> Admin Skin</small> <strong>1.0</strong></p>")));
            c.Controls.Add(new LiteralControl(String.Format("<div class='server-info'>Server: <strong>Apache (unknown)</strong></div>")));
            c.Controls.Add(new LiteralControl(String.Format("<div class='server-info'>Php: <strong>5.2.17</strong></div>")));
            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("</div>")));
            #endregion
            #region Main Navigation
            c.Controls.Add(new LiteralControl(String.Format("<nav id='main-nav'>")));
            c.Controls.Add(new LiteralControl(String.Format("<ul class='container_12'>")));
            // Menu Level 1 [Home]
            c.Controls.Add(new LiteralControl(String.Format("<li class='home current'><a href='javascript:void(0)' title='Home'>Home</a></li>")));
            // Menu Level 1 [Write]
            c.Controls.Add(new LiteralControl(String.Format("<li class='write'><a href='javascript:void(0)' title='Home'>Write</a>")));
            // Menu Level 2 [Write] [Articles]
            c.Controls.Add(new LiteralControl(String.Format("<ul>")));
            c.Controls.Add(new LiteralControl(String.Format("<li><a href='javascript:void(0)' title='Articles'>Articles</a></li>")));
            c.Controls.Add(new LiteralControl(String.Format("<li><a href='javascript:void(0)' title='Posts'>Posts</a></li>")));
            c.Controls.Add(new LiteralControl(String.Format("</li>")));


            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("</ul>")));
            c.Controls.Add(new LiteralControl(String.Format("</nav>")));
            #endregion
            #region Sub Navigation
            c.Controls.Add(new LiteralControl(String.Format("<div id='sub-nav'>")));
            c.Controls.Add(new LiteralControl(String.Format("<div class='container_12'>")));
            c.Controls.Add(new LiteralControl(String.Format("<a href='javascript:void(0)' title='Help' class='nav-button'><b>Help</b></a>")));
            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("</div>")));
            c.Controls.Add(new LiteralControl(String.Format("</div>")));
            #endregion
            c.Controls.Add(new LiteralControl(String.Format("</header>")));
            #endregion
            
             c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("")));
            c.Controls.Add(new LiteralControl(String.Format("<!--[if lt IE 8]></div><![endif]-->")));
            c.Controls.Add(new LiteralControl(String.Format("<!--[if lt IE 9]></div><![endif]-->")));
        }

    }
   
}
